package com.ykh.spring.impl;

import com.ykh.spring.Calculate;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-08-24
 * Time: 9:14
 */
public class CalculateImpl implements Calculate {

    @Override
    public int add(int a, int b) {
        return a+b;
    }

    @Override
    public int substraction(int a, int b) {
        return a-b;
    }

    @Override
    public int multiplication(int a, int b) {
        return a*b;
    }

    @Override
    public int division(int a, int b) {
        return a/b;
    }
}
